<?php

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.application.component.controller');

class Controller_base extends JController {

/**
 * Custom Constructor
 */
    function __constuct( $default = array()) {
        parent::__construct( $default );
    }

    /**
     * Cancel operation
     */
    function cancel() {
        $this->setRedirect( 'www.google.it' );
    }

    /**
     * Display Main View
     *
     * @access    public
     */
    function display() {

        $view =& $this->getView( 'World' );

        //retrieve model
        $model =& $this->getModel('Images');
        $markers = $model->retrieveMarkers();
        $view->display($markers);
    }

    /**
     * Display Upload View
     *
     * @access    public
     */
    function upload() {

    //retrieve model
        $model =& $this->getModel('Images');
        //init upload view
        $view =& $this->getView( 'Upload' );
        $view->display($model, null);
    }

    /**
     * Display Upload confirmation
     */
    function uploadStatus() {

        $view =& $this->getView( 'Uploadstatus' );
        $view->display($model, null);
    }

}





?>
